package com.unicom.lottery.entity.input;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(value = "中奖记录信息")
public class LotteryRecord {
    @ApiModelProperty(value = "Id", required = true)
    private Integer id;

    @ApiModelProperty(value = "userId", required = true)
    private String userId;

    @ApiModelProperty(value = "礼品Id", required = true)
    private LotteryName giftList;

    @ApiModelProperty(value = "礼品中奖时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale = "zh_CN")
    private Date giftRecordTime;

    @ApiModelProperty(value = "填写礼品地址", required = true)
    private String giftAddress;

    @ApiModelProperty(value = "填写礼品地址时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale = "zh_CN")
    private Date wirteAddressTime;

    @ApiModelProperty(value = "领取状态(1.领取 2.未领取）", required = true)
    private Integer giftReceiveStatus;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public LotteryName getGiftList() {
        return giftList;
    }

    public void setGiftList(LotteryName giftList) {
        this.giftList = giftList;
    }

    public Date getGiftRecordTime() {
        return giftRecordTime;
    }

    public void setGiftRecordTime(Date giftRecordTime) {
        this.giftRecordTime = giftRecordTime;
    }

    public String getGiftAddress() {
        return giftAddress;
    }

    public void setGiftAddress(String giftAddress) {
        this.giftAddress = giftAddress == null ? null : giftAddress.trim();
    }

    public Date getWirteAddressTime() {
        return wirteAddressTime;
    }

    public void setWirteAddressTime(Date wirteAddressTime) {
        this.wirteAddressTime = wirteAddressTime;
    }

    public Integer getGiftReceiveStatus() {
        return giftReceiveStatus;
    }

    public void setGiftReceiveStatus(Integer giftReceiveStatus) {
        this.giftReceiveStatus = giftReceiveStatus;
    }
}